class ShareEntity {
	int code;
	ShareData data;
	String message;

	ShareEntity({this.code, this.data, this.message});

	ShareEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new ShareData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class ShareData {
	String code;
	String indirect;
	String money;
	String qrcode;
	String num;
	String kslink;

	ShareData({this.code, this.indirect, this.money, this.qrcode, this.num, this.kslink});

	ShareData.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		indirect = json['indirect'];
		money = json['money']==null?"0":json['money'];
		qrcode = json['qrcode'];
		num = json['num'];
		kslink = json['kslink'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		data['indirect'] = this.indirect;
		data['money'] = this.money;
		data['qrcode'] = this.qrcode;
		data['num'] = this.num;
		data['kslink'] = this.kslink;
		return data;
	}
}
